home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-07-10 | 3.5 KB | 146 lines |
-
- ###############################################################################
- # #
- # Makefile for GNU Interactive Tools 4.3.7 #
- # Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. #
- # #
- ###############################################################################
-
-
- #
- # If you make changes in this file in order to compile GIT on a system not
- # included in the file PLATFORMS, please send me a patch. My internet address
- # is tudor@chang.pub.ro. I'll include it in the next release. Thanks.
- #
-
- #
- # GIT default install directory. You may change this if you want to install
- # the GIT package in a different place.
- #
-
-
- PRODUCT = "@PRODUCT@"
- VERSION = "@VERSION@"
-
-
- srcdir = @srcdir@
- VPATH = @srcdir@
-
- prefix = @prefix@
- bindir = $(prefix)/bin
- libdir = $(prefix)/lib/git
- infodir = $(prefix)/info
- mandir = $(prefix)/man/man1
- termdir = $(prefix)/lib/git/term
-
- SHELL = /bin/sh
- TAR = tar
- GZIP = gzip
- BASENAME = basename
- HOST = @HOST@
- SUBDIRS = src info man term
-
-
- all:
- @(\
- echo "Making $(PRODUCT) $(VERSION)...";\
- echo "Configured for $(HOST)";\
- )
- (cd src && $(MAKE) $@)
-
- installdirs:
- for dir in $(SUBDIRS);\
- do\
- (cd $$dir && $(MAKE) $@);\
- done
-
- info: FORCE-info
- @(\
- echo "Making $(PRODUCT) $(VERSION) info documentation...";\
- echo "Configured for $(HOST)";\
- )
- (cd info && $(MAKE) $@)
-
- FORCE-info:
-
- dvi:
- (cd info && $(MAKE) $@)
-
- install:
- @(\
- echo "Installing $(PRODUCT) $(VERSION)...";\
- echo "Configured for $(HOST)";\
- )
- $(MAKE) installdirs &&\
- \
- for dir in $(SUBDIRS);\
- do\
- (cd $$dir && $(MAKE) $@);\
- done
- @(\
- echo ;\
- echo "************************************* HINTS ***********************************";\
- echo "1 - The info/git.dir file should be appended to the file" $(infodir)/dir ".";\
- if test ! -f $(infodir)/dir; then\
- echo "*************** BTW, I can't find your" $(infodir)/dir "file !";\
- fi;\
- \
- echo "2 -" $(bindir) "should be in the PATH in order to run GIT !";\
- echo "3 -" $(mandir) "should be in the MANPATH in order to read the manual pages !";\
- echo "4 - Each user can copy .gitrc.TERM in its home directory to overwrite the";\
- echo " default configuration file(s).";\
- echo " The .gitrc.TERM files can be found in " $(termdir) ".";\
- echo "5 - In order to use a local .gitaction script you should copy the .gitaction";\
- echo " example in the current directory and then modify it.";\
- echo " The .gitaction example can be found in " $(bindir) ".";\
- echo "*******************************************************************************";\
- echo ;\
- echo "done.";\
- )
-
- dep:
- (cd $(srcdir)/src && $(MAKE) $@)
-
- distdone:
- cd $(srcdir) && dir=`pwd` && cd ..;\
- $(TAR) cf - `$(BASENAME) $$dir` |\
- $(GZIP) -9c > `$(BASENAME) $$dir`.tar.gz;\
- \
- if test $$? != 0; then\
- exit 1;\
- fi
-
- dist: dep info distclean distdone
-
- uninstall:
- @echo "Uninstalling $(PRODUCT) $(VERSION)..."
- for dir in $(SUBDIRS);\
- do\
- (cd $$dir && $(MAKE) $@);\
- done
- @echo "Please remove the GIT entry from the Info dir file."
-
- clean:
- rm -f *.o *~ core* tutu* gogu*;\
- \
- for dir in $(SUBDIRS);\
- do\
- (cd $$dir && $(MAKE) $@);\
- done
-
- mostlyclean: clean
-
- distclean:
- rm -f Makefile config.status config.log config.cache config.h;\
- \
- for dir in $(SUBDIRS);\
- do\
- (cd $$dir && $(MAKE) $@);\
- done
-
- realclean: distclean
-
- # Tell version [3.59,3.63) of GNU make not to export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
-